package com.naiterui.ehp.bs.cms.modules.notice.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Version;

import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 通知消息表
 *
 * @author luao
 * @date 2021/3/9 5:05 下午
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("notice_message")
public class NoticeMessage implements Serializable {

    private static final long serialVersionUID = -607567801254484975L;

    /** 院务公开 **/
    public static final int TYPE_MANAGEMENT = 1;

    // 主键
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 类型 1.院务公开
     */
    private Integer type;

    /**
     * 发布时间
     */
    private Date releaseTime;

    /**
     * 删除标记 0:正常 1:删除
     */
    private Integer delFlag;

    @Version
    private Integer version;

    private Date createdAt;

    private String createdBy;

    private Date changedAt;

    private String changedBy;
}
